<%@ page language="java" import="java.util.*,service.*,model.*" pageEncoding="UTF-8"%>
<%

	String viewerid = request.getParameter("viewerid");
	String ownerid = request.getParameter("ownerid");
	
	String slaveid = request.getParameter("slaveid");
	String type = request.getParameter("type");
	
	boolean self = viewerid.equals(ownerid);
	SaleData sdata = FriendSale.getDataObj(slaveid);
	SaleData odata = FriendSale.getDataObj(ownerid);
	
	Map<String,String> display = Stuff.getDisplay(type);
	
if(type.equals("good") || type.equals("bad") || type.equals("flirt")){
%>
<ul>
<%	
	int i = 0 ;
	for(String key:display.keySet()){
%>
	<li class="choice1"><input type="radio" name="stuffid" id="stuffid" value="<%=key %>"  <%=(i==0?"checked":"")%>/>&nbsp;<%=display.get(key) %></li>
<%
	i++;
}
%>
</ul>
<div>
<p><input type="button" id="exitbutton" value="&nbsp;&nbsp;确定&nbsp;&nbsp;"/></p>
</div>
<%}else if(type.equals("1")){ %>
	<input type="hidden" id="stuffid" value="1"/>
	你确定要释放奴隶<%=sdata.getPerson().getName()%>吗?
	<div> 
<p><input type="button" id="exitbutton" value="&nbsp;&nbsp;确定&nbsp;&nbsp;"/><input type="button" value="&nbsp;&nbsp;取消&nbsp;&nbsp;" onclick="tb_remove()"/></p>
</div>

<%}else if(type.equals("2")){ %>
<input type="hidden" id="stuffid" value="2"/>
	你确定要花¥<%=odata.getPrice()%>来赎身吗?
	<div> 
<p><input type="button" id="exitbutton" value="&nbsp;&nbsp;确定&nbsp;&nbsp;"/><input type="button" value="&nbsp;&nbsp;取消&nbsp;&nbsp;" onclick="tb_remove()"/></p>
</div>
<%}else if(type.equals("3")){ %>
<input type="hidden" id="stuffid" value="3"/>
	你确定要打折处理你的奴隶吗?
	<div> 
<p><input type="button" id="exitbutton" value="&nbsp;&nbsp;确定&nbsp;&nbsp;"/><input type="button" value="&nbsp;&nbsp;取消&nbsp;&nbsp;" onclick="tb_remove()"/></p>
</div>

<%} %>